import requestWithToken from "@/utils/request";
import {SearchVO} from "@/typings";

export const createOrder = (data: any) => {
    return requestWithToken("/order/create", "POST", data);
};
export const shipOrder = (id: string, logisticsNo: string) => {
    return requestWithToken("/order/ship", "GET", {id, logisticsNo});
};
export const cancelOrder = (id: string) => {
    return requestWithToken("/order/cancel", "GET", {id});
};
export const listOrder = (searchVO: SearchVO) => {
    return requestWithToken("/order/back/list", "GET", searchVO);
};
export const ORDER_TYPE_LETTER = "寄信";
export const ORDER_TYPE_POSTCARD = "寄明信片";
export const ORDER_TYPE_PRODUCT = "寄商品";
